<template>
	<view class="content">
		<view class="info-item" @click="navigate('/page_other/policey/index?id=1')">
			<view class="title FZHZGBJ">个人</view>
			<view class="txt">适合求职者的相关政策</view>
		</view>
		<view class="info-item1" @click="navigate('/page_other/policey/index?id=2')">
			<view class="title FZHZGBJ">企业</view>
			<view class="txt">适合企业的相关政策</view>
		</view>
	</view>
</template>

<script>
	import {
		addModuleCount
	} from '@/api/policy.js';
	export default {
		data() {
			return {

			}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			getAddModuleCount() {
				addModuleCount({
					type: 7,
				}).then(data => {
					uni.hideLoading()
					this.form = data
				}).catch(() => {
					uni.hideLoading()
				})
			},
		},
		onLoad() {
			this.getAddModuleCount()
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		padding: 30rpx;

		.info-item {
			height: 240rpx;
			background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/personal.png') no-repeat center;
			background-size: 100% 100%;
			padding: 30rpx 30rpx 30rpx 50rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-bottom: 30rpx;

			.title {
				color: #fff;
				font-size: 36rpx;
				margin-bottom: 30rpx;
			}

			.txt {
				color: #fff;
				font-size: 28rpx;
			}
		}

		.info-item1 {
			height: 240rpx;
			background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/firm.png') no-repeat center;
			background-size: 100% 100%;
			padding: 30rpx 30rpx 30rpx 50rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-bottom: 30rpx;

			.title {
				color: #fff;
				font-size: 36rpx;
				margin-bottom: 30rpx;
			}

			.txt {
				color: #fff;
				font-size: 28rpx;
			}
		}
	}
</style>